
#ifndef __IOCP_PIPE_SOCKET_H__
#define __IOCP_PIPE_SOCKET_H__

#include "tcpsocket.h"

#ifdef __cplusplus
extern "C" {
#endif


    HIOCPFILE pipeio_new(HIOCPBASE hIocp, SOCKET hFile);


    BOOL pipeio_listen(HIOCPFILE hObject, LPCTSTR strPipeName, PFN_ACCEPTPROC pfnAcceptProc);
    BOOL pipeio_connect(HIOCPFILE hObject, LPCTSTR strPipeName, PFN_CONNECTPROC pfnConnectProc);

    BOOL pipeio_enable_read(HIOCPFILE hObject, BOOL bEnable);
    BOOL pipeio_enable_write(HIOCPFILE hObject, BOOL bEnable);

    BOOL pipeio_shutdown(HIOCPFILE hObject, int nHow);


#ifdef __cplusplus
};
#endif


#endif
